﻿using ExpressesClass.KyApi.Base;
using ExpressesClass.KyApi.billTrace.response;
using ExpressesClass.KyApi.Util;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace ExpressesClass.KyApi.billTrace.request
{
    public class BillTraceReq : KyRequest
    {
        public BillTraceReq()
        {
            this.waybillNumbers = new List<string>();
        }
        public List<string> waybillNumbers { get; set; }

        public override string GetMethodCode()
        {
            return ConfigUrl.GetMethodCode("TRACE");
        }

        public override string GetTokenUrl()
        {
            return ConfigUrl.GetTokenUrl();
        }

        public override string GetUrl()
        {
            return ConfigUrl.GetUrl();
        }

        public override KyResponse makeResponse(string rsp)
        {
            return JsonConvert.DeserializeObject<BillTraceRsp>(rsp);
        }
    }
}
